package edu.neusoft.kongfanfei317.yuejian1.model;

import java.util.List;

import edu.neusoft.kongfanfei317.yuejian1.bean.MasterListBean;
import edu.neusoft.kongfanfei317.yuejian1.iface.MasterIface;
import edu.neusoft.kongfanfei317.yuejian1.listener.ListListener;
import edu.neusoft.kongfanfei317.yuejian1.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class MasterListModel extends RetrofitBaseModel implements MasterIface<MasterListBean> {
    private Retrofit retrofit;
    Service service;
    public MasterListModel(){
        retrofit = getRetrofit();
    }
    @Override
    public void getFoodMessage(String shopid, ListListener<MasterListBean> listListener) {
        service = getService();
        Call<List<MasterListBean>> call = service.getfood(shopid);

        callenqueueList(call,listListener);
    }
}
